package newx
{
	import flash.events.Event;
	
	public class EngineEvent extends Event
	{
		public static const CLASS_NAME		:String		=	"newx::EngineEvent";
		public static const INIT_PROGRESS		:String		=	"EngineEvent00000001";
		public static const INIT_COMPLETE		:String		=	"EngineEvent00000002";
		
		private var data:Object;
				
		public function EngineEvent(type:String, dataVal:Object = null ,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			data	=	dataVal;
//			trace(type,step+"/"+stepTotal,int(initProgress*100)+"%")
		}
		
		/**
		 * 获取步骤
		 * */
		public function get step():int
		{
			return data.step;
		}
		
		/**
		 * 获取步骤总数
		 * */
		public function get stepTotal():int
		{
			return data.stepTotal;
		}
		
		/**
		 * 当前步骤进度(0-1)
		 * */
		public function get initProgress():Number
		{
			return data.initProgress;
		}
	}
}